#include<iostream>
#include<vector>
#include<algorithm>
#include<string>
using namespace std;

class Person
{
public:
	Person(string name, int age)
	{
		this->m_Age = age;
		this->m_Name = name;
	}

	string m_Name;
	int m_Age;
};

class Great2
{
public:
	bool operator()(const Person &p)
	{
		return p.m_Age > 2 ? true : false;
	}
};


void main()
{
	vector<Person>v;
	v.push_back(Person("asd", 1));
	v.push_back(Person("asc", 2));
	v.push_back(Person("asb", 3));
	v.push_back(Person("asa", 4));

	vector<Person>::iterator it = find_if(v.begin(), v.end(), Great2());

	cout << (it == v.end() ? "false" : "true") << endl;

	system("pause");
}